package com.creataion.prototype;

public class TestMain {
    public static void main(String[] args) {
        TaoBao taoBao = new TaoBao();
        DrRing drRing = taoBao.getDrRing("黄金");
        System.out.println(drRing);
        System.out.println("==============================");
        drRing.setName("白银小猪佩奇");
        System.out.println(drRing);
//        得到的是克隆体
        System.out.println("==============================");
        DrRing drRing1 = taoBao.getDrRing("黄金");
        System.out.println(drRing1);

    }
}
